package com.forage.exp.constant;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author : George
 * @date : 2022-05-3
 *
 * 用户等级枚举
 */
@Getter
@AllArgsConstructor
public enum UserLevelEnum {
    USER(1,"User","普通用户"),
    ADMIN(2,"Admin","管理员");

    /**
     * 数据库存储值
     */
    @EnumValue
    private final Integer keyValue;

    /**
     * SpringSecurity权限值
     */
    private final String authValue;

    /**
     * 前端展示值
     */
    @JsonValue
    private final String displayValue;



}
